Time to upgrade: 5 +/- Minutes
Files to edit: 5

#====
OPEN

language/lang_english/lang_main.php
includes/usercp_register.php
admin/admin_board.php
templates/*/admin/board_config_body.tpl

Delete all codes this mod added to them.
#====

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

includes/usercp_register.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

			$sql = "UPDATE " . USERS_TABLE . "

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====
include_once($phpbb_root_path .'includes/phpbb_security.'. $phpEx);
	$ps_question 	= ($_POST['PS_question']) 	? $_POST['PS_question'] : $HTTP_POST_VARS['PS_question'];
	$ps_answer 		= ($_POST['PS_answer']) 	? $_POST['PS_answer'] 	: $HTTP_POST_VARS['PS_answer'];
	if ( (isset($HTTP_POST_VARS['submit'])) && ($mode == 'editprofile') )
		phpBBSecurity_Validate($ps_question, $ps_answer, $userdata['user_id'], $mode);
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

			if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
			}

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====
include_once($phpbb_root_path .'includes/phpbb_security.'. $phpEx);
	$ps_question 	= ($_POST['PS_question']) 	? $_POST['PS_question'] : $HTTP_POST_VARS['PS_question'];
	$ps_answer 		= ($_POST['PS_answer']) 	? $_POST['PS_answer'] 	: $HTTP_POST_VARS['PS_answer'];
	if ((isset($HTTP_POST_VARS['submit'])) && ($mode == 'register') )
		phpBBSecurity_Validate($ps_question, $ps_answer, $user_id, $mode);
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

	'USERNAME' => $username,

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====	
		'PS_TITLE'			=> $lang['PS_security_title'],
		'PS_QUESTION'		=> $lang['PS_security_question'],
		'PS_QUESTION_EXP'	=> $lang['PS_security_question_exp'],
		'PS_Q'				=> $userdata['phpBBSecurity_question'],		
		'PS_ANSWER'			=> $lang['PS_security_answer'],
		'PS_ANSWER_EXP'		=> $lang['PS_security_answer_exp'],
		'PS_A'				=> $userdata['phpBBSecurity_answer'],
		'PS_A_EXP'			=> $lang['PS_security_a_exp'],
		'PS_EXP'			=> $lang['PS_profile_explain'],
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

admin/admin_board.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====					
include_once($phpbb_root_path .'includes/phpbb_security.'. $phpEx);
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

			{
				message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
			}

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.0 =========================================================== |
#====
		$ps_a = ($_POST['ps_admin']) 		? $_POST['ps_admin'] 		: $HTTP_POST_VARS['ps_admin'];
		$ps_i = ($_POST['ps_admin_id']) 	? $_POST['ps_admin_id'] 	: $HTTP_POST_VARS['ps_admin_id'];
		$ps_l = ($_POST['ps_limit']) 		? $_POST['ps_limit'] 		: $HTTP_POST_VARS['ps_limit'];
		$ps_b = ($_POST['ps_ban']) 			? $_POST['ps_ban'] 			: $HTTP_POST_VARS['ps_ban'];
		$ps_s = ($_POST['ps_sess']) 		? $_POST['ps_sess'] 		: $HTTP_POST_VARS['ps_sess'];
		$ps_c = ($_POST['ps_allow_change']) ? $_POST['ps_allow_change'] : $HTTP_POST_VARS['ps_allow_change'];
		$ps_p = ($_POST['ps_admin_pm']) 	? $_POST['ps_admin_pm'] 	: $HTTP_POST_VARS['ps_admin_pm'];
		$ps_e = ($_POST['ps_admin_em']) 	? $_POST['ps_admin_em'] 	: $HTTP_POST_VARS['ps_admin_em'];
		
		phpBBSecurity_UpdateConfig($ps_a, $ps_i, $ps_l, $ps_b, $ps_s, $ps_c, $ps_p, $ps_e);
		
	if ($userdata['user_id'] == phpBBSecurity_OldestAdmin())
		{
	$s_a 	= ($_POST['special_admin']) 	? $_POST['special_admin'] 	: $HTTP_POST_VARS['special_admin'];
	$s_m 	= ($_POST['special_mod']) 		? $_POST['special_mod'] 	: $HTTP_POST_VARS['special_mod'];
	$s_u 	= ($_POST['ps_use_special']) 	? $_POST['ps_use_special'] 	: $HTTP_POST_VARS['ps_use_special'];
	$s_d	= ($_POST['ps_ddos_option']) 	? $_POST['ps_ddos_option'] 	: $HTTP_POST_VARS['ps_ddos_option'];
	$s_cl	= ($_POST['ps_clike_option']) 	? $_POST['ps_clike_option']	: $HTTP_POST_VARS['ps_clike_option'];
	$s_cb	= ($_POST['ps_cback_option']) 	? $_POST['ps_cback_option'] : $HTTP_POST_VARS['ps_cback_option'];
	$s_e	= ($_POST['ps_chr_option']) 	? $_POST['ps_chr_option'] 	: $HTTP_POST_VARS['ps_chr_option'];
	$s_s	= ($_POST['ps_sql_option']) 	? $_POST['ps_sql_option'] 	: $HTTP_POST_VARS['ps_sql_option'];
	$s_p	= ($_POST['ps_perl_option']) 	? $_POST['ps_perl_option'] 	: $HTTP_POST_VARS['ps_perl_option'];
	$s_un	= ($_POST['ps_union_option']) 	? $_POST['ps_union_option'] : $HTTP_POST_VARS['ps_union_option'];
	$s_f	=( $_POST['ps_file_option']) 	? $_POST['ps_file_option'] 	: $HTTP_POST_VARS['ps_file_option'];
	
		phpBBSecurity_UpdateSpecial($s_a, $s_m, $s_u, $s_d, $s_cl, $s_cb, $s_e, $s_s, $s_p, $s_un, $s_f);
		}
				
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

$new['site_desc'] = str_replace('"', '&quot;', $new['site_desc']);
$new['sitename'] = str_replace('"', '&quot;', strip_tags($new['sitename']));

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====					
	$q = "SELECT username, user_id
		  FROM ". USERS_TABLE ."
		  WHERE user_level = '". ADMIN ."'";
	$r 				= $db->sql_query($q);
	while($admins 	= $db->sql_fetchrow($r))
		{
	$template->assign_block_vars('admins', array(
		'ID'	=> $admins['user_id'],
		'NAME'	=> $admins['username'])
			);
		}
		
	if ($userdata['user_id'] == phpBBSecurity_OldestAdmin())
		{
	$special 	= phpBBSecurity_SpecialCount();
	$split_it 	= explode('%SPLIT%', $special);
	$t_admins 	= str_replace('%X%', $split_it[0], $lang['PS_special_admins_total']);
	$t_mods 	= str_replace('%X%', $split_it[1], $lang['PS_special_mods_total']);
	
		if ($split_it[1] > $board_config[phpBBSecurity_ModConfigName()])
			$mod_problem = $lang['PS_special_mods_offset'];
		else
			$mod_problem = '';
			
		if ($split_it[0] > $board_config[phpBBSecurity_AdminConfigName()])
			$admin_problem = $lang['PS_special_admins_offset'];
		else
			$admin_problem = '';			
		
	$template->assign_block_vars('phpBBSecurity_special', array(
		'WARNING'	=> $lang['PS_option_warning'],
		'ONE'		=> $lang['PS_option_ban'],
		'TWO'		=> $lang['PS_option_block'],
		'THREE'		=> $lang['PS_option_ignore'],
		# Clike Start
		'BAN_1'		=> ($board_config['phpBBSecurity_Clike_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_1'	=> ($board_config['phpBBSecurity_Clike_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_1'	=> ($board_config['phpBBSecurity_Clike_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_1'		=> $lang['PS_list_two'],
		# Clike Stop; Union Start
		'BAN_2'		=> ($board_config['phpBBSecurity_Union_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_2'	=> ($board_config['phpBBSecurity_Union_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_2'	=> ($board_config['phpBBSecurity_Union_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_2'		=> $lang['PS_list_three'],
		# Union Stop; SQL Start
		'BAN_3'		=> ($board_config['phpBBSecurity_SQL_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_3'	=> ($board_config['phpBBSecurity_SQL_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_3'	=> ($board_config['phpBBSecurity_SQL_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_3'		=> $lang['PS_list_five'],
		# SQL Stop; DDoS Start
		'BAN_4'		=> ($board_config['phpBBSecurity_DDoS_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_4'	=> ($board_config['phpBBSecurity_DDoS_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_4'	=> ($board_config['phpBBSecurity_DDoS_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_4'		=> $lang['PS_list_one'],
		# DDoS Stop; File Start
		'BAN_5'		=> ($board_config['phpBBSecurity_File_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_5'	=> ($board_config['phpBBSecurity_File_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_5'	=> ($board_config['phpBBSecurity_File_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_5'		=> $lang['PS_list_eight'],
		# File Stop; Perl Start
		'BAN_6'		=> ($board_config['phpBBSecurity_Perl_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_6'	=> ($board_config['phpBBSecurity_Perl_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_6'	=> ($board_config['phpBBSecurity_Perl_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_6'		=> $lang['PS_list_six'],
		# Perl Stop; Encoded Start
		'BAN_7'		=> ($board_config['phpBBSecurity_Encoded_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_7'	=> ($board_config['phpBBSecurity_Encoded_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_7'	=> ($board_config['phpBBSecurity_Encoded_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_7'		=> $lang['PS_list_seven'],
		# Encoded Stop; CBACK Start
		'BAN_8'		=> ($board_config['phpBBSecurity_Cback_Ban'] == 1) ? 'checked="checked"' : '',
		'BLOCK_8'	=> ($board_config['phpBBSecurity_Cback_Ban'] == 2) ? 'checked="checked"' : '',
		'IGNORE_8'	=> ($board_config['phpBBSecurity_Cback_Ban'] == 0) ? 'checked="checked"' : '',
		'EXP_8'		=> $lang['PS_list_four'],
		# CBACK Stop												
		'TITLE'		=> $lang['PS_special'],
		'ADMIN'		=> $lang['PS_special_admins'],
		'ADMIN_2'	=> $lang['PS_special_admins_exp'],
		'ADMIN_3'	=> $board_config[phpBBSecurity_AdminConfigName()],
		'ADMIN_4'	=> $t_admins,
		'ADMIN_5'	=> $admin_problem,
		'MOD'		=> $lang['PS_special_mods'],
		'MOD_2'		=> $lang['PS_special_mods_exp'],
		'MOD_3'		=> $board_config[phpBBSecurity_ModConfigName()],
		'MOD_4'		=> $t_mods,
		'MOD_5'		=> $mod_problem,
		'USE'		=> $lang['PS_use_special'],
		'USE_E'		=> $lang['PS_use_special_exp'],
		'USE_Y'		=> ($board_config[phpBBSecurity_UseSpecial()]) ? 'checked="checked"' : '',	
		'USE_N'		=> (!$board_config[phpBBSecurity_UseSpecial()]) ? 'checked="checked"' : '')
			);
		}
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

$template->assign_vars(array(

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====
	'PS_YES_L'			=> $lang['PS_list_choice_one'],
	'PS_NO_L'			=> $lang['PS_list_choice_two'],
	'ADMIN_EM_V'		=> ($board_config['phpBBSecurity_notify_admin_em']) ? 'checked="checked"' : '',	
	'ADMIN_EM_L'		=> $lang['PS_notify_admin_by_em'],
	'ADMIN_PM_V'		=> ($board_config['phpBBSecurity_notify_admin_pm']) ? 'checked="checked"' : '',	
	'ADMIN_PM_L'		=> $lang['PS_notify_admin_by_pm'],
	'ALLOW_CHANGE_L'	=> $lang['PS_allow_user_change'],	
	'ALLOW_CHANGE_Y'	=> ($board_config['phpBBSecurity_Allow_Change']) ? 'checked="checked"' : '',
	'ALLOW_CHANGE_N'	=> (!$board_config['phpBBSecurity_Allow_Change']) ? 'checked="checked"' : '',	
	'PS_LOGIN_LIMIT_V'	=> $board_config['phpBBSecurity_login_limit'],
	'PS_LOGIN_LIMIT_L'	=> $lang['PS_admin_one'],
	'PS_LOGIN_LIMIT_E'	=> $lang['PS_admin_one_exp'],	
	'PS_NOTIFY_ADMIN_L'	=> $lang['PS_admin_two'],
	'PS_NOTIFY_ADMIN_E'	=> $lang['PS_admin_two_exp'],
	'PS_NOTIFY_ADMIN_Y'	=> ($board_config['phpBBSecurity_notify_admin']) ? 'checked="checked"' : '',	
	'PS_NOTIFY_ADMIN_N'	=> (!$board_config['phpBBSecurity_notify_admin']) ? 'checked="checked"' : '',	
	'PS_ADMIN_ID_V'		=> str_replace('%A%', phpBBSecurity_GetName($board_config['phpBBSecurity_notify_admin_id']), $lang['PS_admin_current']),
	'PS_ADMIN_ID_L'		=> $lang['PS_admin_three'],
	'PS_ADMIN_ID_E'		=> $lang['PS_admin_three_exp'],
	'PS_ADMIN_DEFAULT'	=> $lang['PS_admin_default'],
	'PS_ADMIN_BAN_L'	=> $lang['PS_admin_ban'],
	'PS_ADMIN_BAN_E'	=> $lang['PS_admin_ban_exp'],
	'PS_ADMIN_BAN_Y'	=> ($board_config['phpBBSecurity_auto_ban']) ? 'checked="checked"' : '',	
	'PS_ADMIN_BAN_N'	=> (!$board_config['phpBBSecurity_auto_ban']) ? 'checked="checked"' : '',	
	'PS_ADMIN_SESS_L'	=> $lang['PS_admin_sessions'],
	'PS_ADMIN_SESS_E'	=> $lang['PS_admin_sessions_exp'],
	'PS_ADMIN_SESS_V'	=> $board_config['phpBBSecurity_allowed_sessions'],
	'PS_ADMIN_TITLE'	=> $lang['PS_login_header'],
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

templates/*/admin/board_config_body.tpl

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

	<tr>
		<th class="thHead" colspan="2">{L_COOKIE_SETTINGS}</th>
	</tr>

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

<!-- Start: phpBB Security -->	
	<tr>
		<th class="thHead" colspan="2">{PS_ADMIN_TITLE}</th>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{ALLOW_CHANGE_L}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_allow_change" value="1" {ALLOW_CHANGE_Y} /> {L_ENABLED}  <input type="radio" name="ps_allow_change" value="0" {ALLOW_CHANGE_N} /> {L_DISABLED}</span></td>
	</tr>			
	<tr>
		<td class="row1"><span class="genmed">{PS_ADMIN_SESS_L}</span><span class="gensmall">{PS_ADMIN_SESS_E}</span></td>
		<td class="row2"><input type="text" name="ps_sess" class="post" size="5" value="{PS_ADMIN_SESS_V}" /></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{PS_ADMIN_BAN_L}</span><span class="gensmall">{PS_ADMIN_BAN_E}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_ban" value="1" {PS_ADMIN_BAN_Y} /> {L_ENABLED}  <input type="radio" name="ps_ban" value="0" {PS_ADMIN_BAN_N} /> {L_DISABLED}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{PS_LOGIN_LIMIT_L}</span><span class="gensmall">{PS_LOGIN_LIMIT_E}</span></td>
		<td class="row2"><input type="text" name="ps_limit" class="post" size="5" value="{PS_LOGIN_LIMIT_V}" /></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{PS_NOTIFY_ADMIN_L}</span><span class="gensmall">{PS_NOTIFY_ADMIN_E}</span></td>
		<td class="row2">
			<span class="genmed">
				<input type="radio" name="ps_admin" value="1" {PS_NOTIFY_ADMIN_Y} /> {L_ENABLED}  <input type="radio" name="ps_admin" value="0" {PS_NOTIFY_ADMIN_N} /> {L_DISABLED}
				<br>
				<input type="checkbox" name="ps_admin_em" value="1" {ADMIN_EM_V}>{ADMIN_EM_L}	<input type="checkbox" name="ps_admin_pm" value="1" {ADMIN_PM_V}>{ADMIN_PM_L}
			</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{PS_ADMIN_ID_L}</span><span class="gensmall">{PS_ADMIN_ID_E}</span></td>
		<td class="row2">
			<select name="ps_admin_id">
				<option value="" class="post">{PS_ADMIN_DEFAULT}</option>
		<!-- BEGIN admins -->
				<option value="{admins.ID}" class="post">{admins.NAME}</option>
		<!-- END admins -->
			</select>
			<br>
			<span class="gensmall">
				{PS_ADMIN_ID_V}
			</span>
		</td>
	</tr>
	<!-- BEGIN phpBBSecurity_special -->
	<tr>
		<th class="thHead" colspan="2">{phpBBSecurity_special.TITLE}</th>
	</tr>		
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.USE}</span><span class="gensmall">{phpBBSecurity_special.USE_E}</span></td>
		<td class="row2"><input type="radio" name="ps_use_special" value="1" {phpBBSecurity_special.USE_Y} /> {L_ENABLED}  <input type="radio" name="ps_use_special" value="0" {phpBBSecurity_special.USE_N} /> {L_DISABLED}</td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.ADMIN}</span><span class="gensmall">{phpBBSecurity_special.ADMIN_2}</span></td>
		<td class="row2"><input type="text" name="special_admin" class="post" size="5" value="{phpBBSecurity_special.ADMIN_3}" /><span class="gensmall">{phpBBSecurity_special.ADMIN_4}{phpBBSecurity_special.ADMIN_5}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.MOD}</span><span class="gensmall">{phpBBSecurity_special.MOD_2}</span></td>
		<td class="row2"><input type="text" name="special_mod" class="post" size="5" value="{phpBBSecurity_special.MOD_3}" /><span class="gensmall">{phpBBSecurity_special.MOD_4}{phpBBSecurity_special.MOD_5}</span></td>
	</tr>
	<tr>
		<td class="row2" colspan="2">{phpBBSecurity_special.WARNING}</td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_1}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_clike_option" value="1" {phpBBSecurity_special.BAN_1}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_clike_option" value="2" {phpBBSecurity_special.BLOCK_1}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_clike_option" value="0" {phpBBSecurity_special.IGNORE_1}> {phpBBSecurity_special.THREE}</span></td>
	</tr>	
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_2}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_union_option" value="1" {phpBBSecurity_special.BAN_2}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_union_option" value="2" {phpBBSecurity_special.BLOCK_2}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_union_option" value="0" {phpBBSecurity_special.IGNORE_2}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_3}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_sql_option" value="1" {phpBBSecurity_special.BAN_3}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_sql_option" value="2" {phpBBSecurity_special.BLOCK_3}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_sql_option" value="0" {phpBBSecurity_special.IGNORE_3}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_4}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_ddos_option" value="1" {phpBBSecurity_special.BAN_4}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_ddos_option" value="2" {phpBBSecurity_special.BLOCK_4}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_ddos_option" value="0" {phpBBSecurity_special.IGNORE_4}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_5}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_file_option" value="1" {phpBBSecurity_special.BAN_5}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_file_option" value="2" {phpBBSecurity_special.BLOCK_5}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_file_option" value="0" {phpBBSecurity_special.IGNORE_5}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_6}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_perl_option" value="1" {phpBBSecurity_special.BAN_6}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_perl_option" value="2" {phpBBSecurity_special.BLOCK_6}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_perl_option" value="0" {phpBBSecurity_special.IGNORE_6}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_7}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_chr_option" value="1" {phpBBSecurity_special.BAN_7}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_chr_option" value="2" {phpBBSecurity_special.BLOCK_7}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_chr_option" value="0" {phpBBSecurity_special.IGNORE_7}> {phpBBSecurity_special.THREE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="genmed">{phpBBSecurity_special.EXP_8}</span></td>
		<td class="row2"><span class="genmed"><input type="radio" name="ps_cback_option" value="1" {phpBBSecurity_special.BAN_8}> {phpBBSecurity_special.ONE}  <input type="radio" name="ps_cback_option" value="2" {phpBBSecurity_special.BLOCK_8}> {phpBBSecurity_special.TWO}  <input type="radio" name="ps_cback_option" value="0" {phpBBSecurity_special.IGNORE_8}> {phpBBSecurity_special.THREE}</span></td>
	</tr>									
	<!-- END phpBBSecurity_special -->
<!-- End: phpBB Security -->

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

includes/page_tail.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

	'PHPBB_VERSION' => '2' . $board_config['version'],

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == phpBB Security ========================================= |
#==== v1.0.1 =========================================================== |
#====
	'BLOCKED'	=> str_replace('%T%', '<b>'. number_format($board_config['phpBBSecurity_total_attempts']) .'</b>', $lang['PS_blocked_line']),
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |
#==== End: ==== phpBB Security ========================================= |	
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

templates/*/overall_footer.tpl

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

<a href="login_security.php?phpBBSecurity=caught" class="copyright">Protected</a> by phpBB Security 1.0.0  <a href="http://phpbb-amod.com" class="copyright" target="_blank">phpBB-Amod</a><br />
OR
Protected by phpBB Security 1.0.0  <a href="http://phpbb-amod.com" class="copyright" target="_blank">phpBB-Amod</a><br />

-----------------------------------
----[ REPLACE WITH ]---------------
-----------------------------------

<a href="login_security.php?phpBBSecurity=caught" class="copyright">Protected</a> by phpBB Security 1.0.1  <a href="http://phpbb-amod.com" class="copyright" target="_blank">phpBB-Amod</a><br>{BLOCKED}<br>
OR
Protected by phpBB Security 1.0.1  <a href="http://phpbb-amod.com" class="copyright" target="_blank">phpBB-Amod</a><br />{BLOCKED}<br />

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

#==== End of file changes

BEFORE YOU OVERWRITE phpbb_security.php, make sure you change

	function phpBBSecurity_AdminConfigName()
		{
		return 'phpBBSecurity_admins_am';
		}
		
	function phpBBSecurity_ModConfigName()
		{
		return 'phpBBSecurity_mods_am';
		}
		
	function phpBBSecurity_UseSpecial()
		{
		return 'phpBBSecurity_unwanted_use';
		}

to the correct names. These 3 need to be changed to what you currently have in your phpbb_security
file. If you dont change these in the new phpbb_security file before you overwrite it, you could
have problems saving some of the fields in the ACP.

#==== UPLOAD & OVERWRITE IF NEEDED

login_security.php 		To		Root/login_security.php
phpbb_security.php		To		Root/includes/phpbb_security.php
lang_phpbb_security.php		To		Root/language/lang_*/lang_phpbb_security.php
login_security.tpl		To		Root/templates/*/login_security.tpl

#==== UPGRADE FILES

Upload ps_upgrade.php to your root folder & execute it via browser. 
	IE: http://your-site.com/ps_upgrade.php

Delete ps_upgrade.php from your root folder!

Upload update_attempts.php to your root folder & execute it via browser. 
	IE: http://your-site.com/update_attempts.php

Delete update_attempts.php from your root folder!

#====
EoM